import { createRouter, createWebHashHistory } from 'vue-router'
import Login from '../components/Login.vue'
import Chat from '../components/Chat.vue'
import Admin from '../components/Admin.vue'

const routes = [
  {
    path: '/',
    component: Login
  },
  {
    path: '/chat',
    component: Chat
  },
  {
    path: '/admin',
    component: Admin
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router 